package com.pyb.controller;

import com.pyb.pojo.Account;
import com.pyb.pojo.R;
import com.pyb.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @version 1.0
 * @Author 彭彦彬
 * @Date 2025/1/17 11:09
 * @注释
 */
@RestController
public class AccountController {
    @Autowired
    private AccountService accountService;
    @RequestMapping(value = "/accounts", produces = "application/json; charset=UTF-8")
    public String showAccounts(){
        System.out.println(accountService.findAllAcount());
        return accountService.findAllAcount()+"";
    }
}
